package com.ikas.autumn.iec104.module.iec.purejavacomm;


import io.netty.channel.ChannelOption;

/**
 * Option for configuring a serial port connection
 */
public final class PureJavaCommChannelOption<T> extends ChannelOption<T> {
	public static final PureJavaCommChannelOption<Integer> BAUD_RATE =
			new PureJavaCommChannelOption<>("BAUD_RATE");

	public static final PureJavaCommChannelOption<Boolean> DTR =
			new PureJavaCommChannelOption<>("DTR");

	public static final PureJavaCommChannelOption<Boolean> RTS =
			new PureJavaCommChannelOption<>("RTS");

	public static final PureJavaCommChannelOption<PureJavaCommChannelConfig.Stopbits> STOP_BITS =
			new PureJavaCommChannelOption<>("STOP_BITS");

	public static final PureJavaCommChannelOption<PureJavaCommChannelConfig.Databits> DATA_BITS =
			new PureJavaCommChannelOption<>("DATA_BITS");

	public static final PureJavaCommChannelOption<PureJavaCommChannelConfig.Paritybit> PARITY_BIT =
			new PureJavaCommChannelOption<>("PARITY_BIT");

	public static final PureJavaCommChannelOption<Integer> WAIT_TIME =
			new PureJavaCommChannelOption<>("WAIT_TIME");

	public static final PureJavaCommChannelOption<Integer> READ_TIMEOUT =
			new PureJavaCommChannelOption<>("READ_TIMEOUT");

	@SuppressWarnings("deprecation")
	private PureJavaCommChannelOption(String name) {
		super(name);
	}
}
